﻿import request from '/@/utils/request';
enum Api {
  AddBusCart = '/api/busCart/add',
  DeleteBusCart = '/api/busCart/delete',
  UpdateBusCart = '/api/busCart/update',
  PageBusCart = '/api/busCart/page',
  GetSysUserDropdown = '/api/busCart/SysUserDropdown',
}

// 增加购物车
export const addBusCart = (params?: any) =>
	request({
		url: Api.AddBusCart,
		method: 'post',
		data: params,
	});

// 删除购物车
export const deleteBusCart = (params?: any) => 
	request({
			url: Api.DeleteBusCart,
			method: 'post',
			data: params,
		});

// 编辑购物车
export const updateBusCart = (params?: any) => 
	request({
			url: Api.UpdateBusCart,
			method: 'post',
			data: params,
		});

// 分页查询购物车
export const pageBusCart = (params?: any) => 
	request({
			url: Api.PageBusCart,
			method: 'post',
			data: params,
		});

export const getSysUserDropdown = () =>
		request({
		url: Api.GetSysUserDropdown,
		method: 'get'
		});

